package routers

import (
	"backend/controllers"
	"backend/services"
	"backend/utils"

	"github.com/gin-gonic/gin"
)

func RegisterMenuRoutes(r *gin.RouterGroup) {
	menuService := services.NewMenuService(utils.DB)
	menuControl := controllers.NewMenuController(menuService)
	r.POST("/menu/create", menuControl.Create)
	r.PUT("/menu/:id/update", menuControl.Update)
	r.DELETE("/menu/:id/delete", menuControl.Delete)
	r.GET("/menu/list", menuControl.GetMenuList)
	// r.GET("/menu/permission/list", menuControl.GetMenuPermission)
}
